package com.flying.server;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.flying.server.network.NetworkServer;
import com.flying.server.network.handler.InitMsgHandler;
import com.flying.server.network.msg.MsgType;


public class Server {
	private static Logger log = LoggerFactory.getLogger(Server.class);
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {

		System.out.printf("start..");
		log.info("Server starting...");
		
		NetworkServer.init("192.168.0.123",8054);
		
		NetworkServer.getInstance().registerMsgHandler(MsgType.INIT, new InitMsgHandler());
		
		System.out.printf("listening..");
		log.info("Server started!");
		
	}
}
